package o;

import android.content.Context;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;
import com.huawei.gamebox.service.usercenter.personal.bean.GetUserSummaryInfoRes;

public class fbn implements IServerCallBack {
    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
        if (responseBean instanceof GetUserSummaryInfoRes) {
            GetUserSummaryInfoRes getUserSummaryInfoRes = (GetUserSummaryInfoRes) responseBean;
            if (getUserSummaryInfoRes.getResponseCode() == 0 && getUserSummaryInfoRes.getRtnCode_() == 0 && getUserSummaryInfoRes.ˊ() != null) {
                fbo.ˋ().ॱ(getUserSummaryInfoRes.ˊ());
            }
        }
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        if (responseBean instanceof GetUserSummaryInfoRes) {
            Context ॱ = azc.ॱ(ContentManager.getInstant().getContext());
            GetUserSummaryInfoRes getUserSummaryInfoRes = (GetUserSummaryInfoRes) responseBean;
            if (getUserSummaryInfoRes.getResponseCode() != 0) {
                eyo ॱ2 = eyo.ॱ(o_cvu, responseBean, null);
                evk.ˋ(ॱ, ॱ2.ˋ(), 0).ˋ();
                if (Logger.ˎ()) {
                    Logger.ˏ("GetUserSummaryCallback", ॱ2.ˏ());
                }
            } else if (getUserSummaryInfoRes.getRtnCode_() != 0 || getUserSummaryInfoRes.ˊ() == null) {
                if (getUserSummaryInfoRes.getRtnCode_() == -2) {
                    eod.ˏ(ॱ);
                    evk.ˏ(ॱ, exp$f.ˊ, 0).ˋ();
                }
            } else if (Logger.ˎ()) {
                Logger.ˏ("GetUserSummaryCallback", "the work has done on prePostResult");
            }
        }
    }
}
